<?php
/*
 * ******************************************************
 * CALLED WHEN AN ITEM IS POSTED FOR JOBS CATEOGRY
 * ******************************************************
 */
require_once 'table.php';
$tbl=new Model_Table_JobsAttr();
$values=array();
$values['item_id']=$item->getItem_id ();
$values['employment_type']=Params::getParam('employment_type');
$values['salary']=Params::getParam('salary');
$values['period']=Params::getParam('period');
$values['experience']=Params::getParam('experience');
$values['industry']=Params::getParam('industry');
$values['mode']=Params::getParam('mode');
$tbl->insert($values);
unset($values['item_id']);
unset($values['salary']);
unset($values['period']);
$item->setTags(implode(',',$values));
$item->save();